package org.example.controller;

import lombok.RequiredArgsConstructor;
import org.example.domain.ResponseResult;
import org.example.domain.dto.GalleryListDto;
import org.example.service.GalleryService;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/gallery")
@RequiredArgsConstructor
public class GalleryController {


    private final GalleryService galleryService;

    @PostMapping("/recommendGallery")
    public ResponseResult recommendGallery(@RequestBody GalleryListDto galleryListDto){

        return galleryService.recommendGallery(galleryListDto);
    }

    @GetMapping("/allGalleryList")
    public ResponseResult allGalleryList(){

        return galleryService.allGalleryList();

    }
}
